#ifndef _PT_LINE_H__
#define _PT_LINE_H__

#ifdef __cplusplus
extern "C"
{
#endif

#include "dataproc.h"
#include "correct.h"
#include "str_ext.h"
#include "search_ext.h"
#include "mytype.h"

	typedef struct
	{
		i16_data_reamap_type *map; 
		uu8 map_len;			   
		ii16 dots;				   
		ii16 dots_offset;		   
		ii16 dot_site_old;		   
		char axis_cnt;			   
		char axis_dots;			   
		char cut_line_dots;		   
		char axis_en;			   
		char out_lmt_en;		   
	} pl_ctr_type;

	ii16 pl_u8_cal(pl_ctr_type *ctr, ii16 val, void *buff, char cut_line_en);

	ii16 pl_u8_add(void *src, ii16 src_len, void *add, ii16 add_len);

	ii16 pl_u8_get_line_from_lcd_xh(
		void *buff,
		ii16 line_num,
		ii16 line_size,
		void *img,
		ii16 xsize);

	ii16 pl_u8_get_line_from_lcd_yl(
		void *buff,
		ii16 line_num,
		ii16 line_size,
		void *img,
		ii16 xsize);

	ii16 pl_u16_cal(pl_ctr_type *ctr, ii16 val, void *buff, char cut_line_en);

	ii16 pl_u16_add(void *src, ii16 src_len, void *add, ii16 add_len);

	ii16 pl_u16_get_line_from_lcd_xh(
		void *buff,
		ii16 line_num,
		ii16 line_size,
		void *img,
		ii16 xsize);

	ii16 pl_u16_get_line_from_lcd_yl(
		void *buff,
		ii16 line_num,
		ii16 line_size,
		void *img,
		ii16 xsize);

#ifdef __cplusplus
}
#endif

#endif
